from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware

from routers import chapter_router,question_router,answer_sheet_router,progress_router

app=FastAPI(debug=True)

app.add_middleware(
    CORSMiddleware,
    allow_origins=['*'],
    allow_credentials=True,
    allow_methods=["*"],
    allow_headers=["*"],
)
app.include_router(chapter_router.router)
app.include_router(question_router.router)
app.include_router(answer_sheet_router.router)
app.include_router(progress_router.router)

if __name__ == '__main__':
    pass